# File:         controller_line.py
# Description:  
# Project:      
# Authors:      
# Creation:     
# Changes:

from controller import Supervisor,Emitter,Receiver
import struct
import math

# this class is used to create user friendly enumerations
class Enumerate(object):
  def __init__(self, names):
    for number, name in enumerate(names.split()):
      setattr(self, name, number)

class Table(Supervisor):
  timeStep = 32
  def initialization(self):
    pass
  
  def run(self):
    while True:
      if self.step(self.timeStep) == -1: break

# instanciate a Robot instance and enter in an infinit loop
controller = Table()
controller.initialization()
controller.run()
